<?php

class adminnotes_md extends CI_Model{
    public function getAllNotes(){
        $allNotesQuery="SELECT * FROM adminNotes";
        $rs=$this->db->query($allNotesQuery);
        return $rs->result();
    }

    public function deleteNotes($noteId){
        $deleteNoteQuery="DELETE FROM adminNotes where idadminNotes=$noteId";
        return $this->db->simple_query($deleteNoteQuery);
    }

  
}
?>